package io.renren.util;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * Created by ThinkPad on 2018/10/9.
 */
public class SerialUtil {
    public SerialUtil() {
    }

    public static String createNewOrderID() {
        SimpleDateFormat dateFormat = new SimpleDateFormat("yyyyMMddHHmmssSSS");
        StringBuilder tempOrderId = new StringBuilder(dateFormat.format(new Date()));
        tempOrderId.append(RandomCard.getRandomNum(3, RandomCard.RandomFormat.NUM));
        return tempOrderId.toString();
    }
}
